package com.wufeng.spring_03_aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);
        FunctionService bean = context.getBean(FunctionService.class);
        bean.add();
        context.close();
    }
}
